/**
 * Created by XianTao on 2016/7/15
 * <p/>
 * Copyright (c) 2015-2015
 * Apache License
 * Version 2.0, January 2004
 * http://www.apache.org/licenses/
 */
package org.smartspring.jpa.base.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ResultVo<T> {
    public static final int STATUS_SUCCESS = 0;
    public static final int STATUS_FAIL = -1;

    private Integer status;
    private String message;
    private T data;

    public ResultVo(Integer status, String message) {
        this.status = status;
        this.message = message;
    }
}
